package com.zz.common.service.IdService

import java.util.UUID

import cats.{Applicative, effect}
import com.zz.common.zid.ZidStorage

class Zidservice[F[_]](zidStorage_ : ZidStorage[F])(implicit applicative:Applicative[F]) extends ZidserviceTrait[F] {
  override protected def zidStorage: ZidStorage[F] = zidStorage_

  override protected def newUUID(): F[String] = applicative.pure(UUID.randomUUID().toString)
}
